package com.zidongxiangxi.sharding.job.starter;

import com.zidongxiangxi.sharding.job.starter.config.ShardingJobSpringConfig;
import com.zidongxiangxi.sharding.job.starter.processor.ShardingJobRunnerAnnotationBeanPostProcessor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 分片任务自动配置类
 *
 * @author chenxudong
 * @date 2021/02/22
 */
@Configuration
@EnableConfigurationProperties(ShardingJobSpringConfig.class)
public class ShardingJobAutoConfiguration {
    @Bean
    public ShardingJobRunnerAnnotationBeanPostProcessor shardingJobRunnerAnnotationBeanPostProcessor() {
        return new ShardingJobRunnerAnnotationBeanPostProcessor();
    }
}
